
/*
 * @Content: 所有模块路由
 * => 基础API http://116.62.147.91:3040
 *
 * @Author: zhanghf
 */
const Router = require('koa-router')()

const home = require('./home') // 基础API
const user = require('./user') // 用户模块
const course = require('./course') // 课程基础模块
const score = require('./score') // 成绩基础模块
const chart = require('./chart') // 图表基础模块

Router.use('/', home.routes(), home.allowedMethods())
Router.use('/user', user.routes(), user.allowedMethods())
Router.use('/course', course.routes(), course.allowedMethods())
Router.use('/score', score.routes(), score.allowedMethods())
Router.use('/chart', chart.routes(), chart.allowedMethods())

module.exports = Router
